package com.xintonghua.hongyi.ui.user;

import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.xintonghua.base.ui.BaseActivity;
import com.xintonghua.base.utils.StatusBarCompat;
import com.xintonghua.hongyi.R;
import com.xintonghua.hongyi.ui.MainActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LoginActivity extends BaseActivity {

    @BindView(R.id.tv_register)
    TextView tvRegister;
    @BindView(R.id.edt_phone)
    EditText edtPhone;
    @BindView(R.id.edt_password)
    EditText edtPassword;
    @BindView(R.id.btn_login)
    Button btnLogin;
    @BindView(R.id.tv_forget)
    TextView tvForget;
    @BindView(R.id.iv_qq)
    ImageView ivQq;
    @BindView(R.id.iv_wx)
    ImageView ivWx;
    @BindView(R.id.tv_user_agreement)
    TextView tvUserAgreement;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_login);
        StatusBarCompat.setStatusBar(this);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_register, R.id.btn_login, R.id.tv_forget, R.id.iv_qq, R.id.iv_wx, R.id.tv_user_agreement})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_register:
                openActivity(RegisterActivity.class);
                break;
            case R.id.btn_login:
                openActivity(MainActivity.class);
                finish();
                break;
            case R.id.tv_forget:
                break;
            case R.id.iv_qq:
                break;
            case R.id.iv_wx:
                break;
            case R.id.tv_user_agreement:
                break;
        }
    }
}
